<!-- 损失物品-交通工具(龙文友) -->
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/form/page-fieldset-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox">
	<ui:param name="pvb" value="#{commonContentViewBean.parent}"/>
	<ui:param name="vehicleComp" value="#{commonContentViewBean}"/>
	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="compTitle" value="交通工具" />
	<ui:param name="compToggleable" value="true" />
	
	<ui:define name="compHiddens">
	 	
	</ui:define>
	
	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
			<!-- 第一行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="casesn" />
				<ui:param name="compBean2Id" value="zhaopian" />
				<ui:param name="compBean1Lable" value="案件编号" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="casesn" value="#{vehicleComp.fields.casesn}" readonly="true" />
				</ui:define>
				<ui:define name="compBean2Content">
					 <img src="" style="width:80px;height:40px;"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第二行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="vehicletype" />
				<ui:param name="compBean1Lable" value="车辆类型" />
				
				<ui:define name="compBean1Content">
					<sinox:codeSetInputTree id="vehicletype" codeSetId="id_c_jtgj" value="#{vehicleComp.fields.vehicletype}" formId="#{commonContentViewBean.id}_form"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第三行 -->
			  <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="doublePlate" />
				<ui:param name="compBean1Lable" value="车牌号" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="doublePlate" value="#{vehicleComp.fields.doublePlate}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第四行 -->
			  <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="doublePlatesort" />
				<ui:param name="compBean1Lable" value="号牌种类" />
				
				<ui:define name="compBean1Content">
					<sinox:codeSetInputTree id="doublePlatesort" codeSetId="id_c_hpzl" value="#{vehicleComp.fields.doublePlatesort}" formId="#{commonContentViewBean.id}_form"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第五行 -->
			  <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="engineid" />
				<ui:param name="compBean1Lable" value="发动机号" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="engineid" value="#{vehicleComp.fields.engineid}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第六行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="model" />
				<ui:param name="compBean2Id" value="photo" />
				<ui:param name="compBean1Lable" value="型号" />
				<ui:param name="compBean2Lable" value="照片" />
				
				<ui:define name="compBean1Content">
					<h:inputText id="model" value="#{vehicleComp.fields.model}" />
				</ui:define>
				<ui:define name="compBean2Content">
					<p:fileUpload
						fileUploadListener="#{vehicleComp.uploadImg}" mode="advanced"
						sizeLimit="1000000" allowTypes="png,gif,jpg">
					</p:fileUpload>
				</ui:define>
			</ui:decorate>
			
			 
			
			<!-- 第七行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="trademark" />
				<ui:param name="compBean2Id" value="value" />
				<ui:param name="compBean1Lable" value="厂牌" />
				<ui:param name="compBean2Lable" value="价值" />
				
				<ui:define name="compBean1Content">
					<h:inputText id="trademark" value="#{vehicleComp.fields.trademark}" />
				</ui:define>
				<ui:define name="compBean2Content">
					<h:inputText id="value" value="#{vehicleComp.fields.value}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第八行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="vehicleid" />
				<ui:param name="compBean2Id" value="maidenregister" />
				<ui:param name="compBean1Lable" value="vin码/车架号" />
				<ui:param name="compBean2Lable" value="初次登记时间" />
				
				<ui:define name="compBean1Content">
					<h:inputText id="vehicleid" value="#{vehicleComp.fields.vehicleid}" />
				</ui:define>
				<ui:define name="compBean2Content">
					<p:calendar id="maidenregister" value="#{vehicleComp.fields.maidenregister}" pattern="yyyy-MM-dd" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第九行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="producingarea" />
				<ui:param name="compBean1Lable" value="产地" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="producingarea" value="#{vehicleComp.fields.producingarea}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第十行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="color" />
				<ui:param name="compBean1Lable" value="颜色" />
				
				<ui:define name="compBean1Content">
					<sinox:codeSetInputTree id="color1" codeSetId="id_c_ys" value="#{vehicleComp.fields.color1}" formId="#{commonContentViewBean.id}_form"/>
					<sinox:codeSetInputTree id="color2" codeSetId="id_c_ys" value="#{vehicleComp.fields.color2}" formId="#{commonContentViewBean.id}_form"/>
					<sinox:codeSetInputTree id="color3" codeSetId="id_c_ys" value="#{vehicleComp.fields.color3}" formId="#{commonContentViewBean.id}_form"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第十一行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single-all" />
				<ui:param name="compBean1Id" value="impressdetails" />
				<ui:param name="compBean1Lable" value="特征描述" />
				
				<ui:define name="compBean1Content">
				<h:inputTextarea
					 style="width:700px; height:100px; overflow:auto;"
					 id="impressdetails" effectDuration="400"
					 value="#{vehicleComp.fields.impressdetails}" />
				</ui:define>
			</ui:decorate>
			<!-- 第十二行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single-all" />
				<ui:param name="compBean1Id" value="annex" />
				<ui:param name="compBean1Lable" value="备注" />
				
				<ui:define name="compBean1Content">
				<h:inputTextarea
					 style="width:700px; height:100px; overflow:auto;"
					 id="annex" effectDuration="400"
					 value="#{vehicleComp.fields.annex}" />
				</ui:define>
			</ui:decorate>
		</ui:decorate>
		
	</ui:define>



	<ui:define name="compButtons">
		<p:commandButton
			title="保存"
			actionListener="#{caseGoodsManager.save}"
			onclick="#{compId}_dialog.hide();"
			onstart="this.disabled=true"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			>
			<h:inputHidden id="#{compId}" value="jtgj" />
		</p:commandButton>
		<p:commandButton title="重置" image="ui-icon-disk" value="重置"></p:commandButton>
	</ui:define>
</ui:composition>
